package com.example.exceldemo.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@HeadRowHeight(60)
@ContentRowHeight(25)
@ColumnWidth(15)
@HeadStyle(fillForegroundColor = 44)
@NoArgsConstructor
@AllArgsConstructor
public class IotSensorDataExportListItem implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 序号
     */
    @ColumnWidth(10)
    @ExcelProperty("序号")
    private String index;
    /**
     * 设备名称
     */
    @ColumnWidth(20)
    @ExcelProperty("设备名称")
    private String deviceName;
    /**
     * 区域名称
     */
    @ColumnWidth(15)
    @ExcelProperty("区域名称")
    private String areaName;

    /**
     * 0最小值，1最大值
     */
    @ColumnWidth(10)
    @ExcelProperty("最值")
    private String desc;

    /**
     * 0最小值，1最大值
     */
    @ColumnWidth(10)
    @ExcelProperty("最值")
    private int num;

}